-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add tests for visualizer to improve test coverage #2161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
sagemaker_session.sagemaker_client.list_associations.side_effect = [ | ||
{ | ||
"AssociationSummaries": [ | ||
{ | ||
"SourceArn": "a:b:c:d:e:context/src-arn-1", | ||
"SourceName": "source-name-1", | ||
"SourceType": "source-type-1", | ||
"DestinationArn": "a:b:c:d:e:context/dest-arn-1", | ||
"DestinationName": "dest-name-1", | ||
"DestinationType": "dest-type-1", | ||
"AssociationType": "type-1", | ||
} | ||
] | ||
}, | ||
{ | ||
"AssociationSummaries": [ | ||
{ | ||
"SourceArn": "a:b:c:d:e:context/src-arn-2", | ||
"SourceName": "source-name-2", | ||
"SourceType": "source-type-2", | ||
"DestinationArn": "a:b:c:d:e:context/dest-arn-2", | ||
"DestinationName": "dest-name-2", | ||
"DestinationType": "dest-type-2", | ||
"AssociationType": "type-2", | ||
} | ||
] | ||
}, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - note that there is an opportunity here to eliminate some redundancy in the test. lets do this on additional tests added next after these two open PRs are merged (next two tests should test training/transform job in pipeline execution step metadata)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Sounds good
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #, if available: https://sim.amazon.com/issues/AML-96247
Description of changes: Added tests for test_model_package_arn and test_endpoint_arn (artifacts and contexts) in visualizer to improve test coverage
Testing done:
tox -e py39 -- tests/unit/sagemaker/lineage
tox -e py39 -- tests/integ/sagemaker/lineage
Both ran successfully